<template>
  <!-- 人气推荐的单个商品 -->
  <div class="good-item" @click="$router.push('/recommendDetail/' + item.id)">
    <img v-lazy="item.pic" alt="" />
    <h6>{{ item.characteristic }}</h6>
    <p>{{ item.name }}</p>
    <span>{{ item.minPrice }}</span>
  </div>
</template>
<script>
export default {
  props: ["item"],
};
</script>

<style lang="scss">
.good-item {
  display: flex;
  flex-direction: column;
  img {
    width: 100%;
    height: 216px;
  }
  h6 {
    font-size: 14px;
    color: #000;
    width: 144px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  p {
    font-size: 12px;
    color: #b2b2b2;
    width: 144px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 8px;
  }
  span {
    font-size: 12px;
    color: #d00000;
    margin-top: 8px;
  }
}
</style>
